#类
class Washer():
    def wash(self):
        print('can wash')

    def print_att(self):
        print(self.width)

#new一个对象
newwash = Washer()
newwash.width=400
newwash.height=500
newwash.print_att()
print(f'washer height {newwash.height}')

secwash = Washer()

#调用wash功能
newwash.wash()
secwash.wash()